﻿using System;

class Program
{
    static void Main()
    {
        int first = int.Parse(Console.ReadLine());
        int second = int.Parse(Console.ReadLine());
        int third = int.Parse(Console.ReadLine());
        if (first > second)
        {
            if (first > third)
            {
                if (second > third)
                {
                    Console.WriteLine(first);
                    Console.WriteLine(second);
                    Console.WriteLine(third);
                }
                else
                {
                    Console.WriteLine(first);
                    Console.WriteLine(third);
                    Console.WriteLine(second);
                }
            }
            else
            {
                Console.WriteLine(third);
                Console.WriteLine(first);
                Console.WriteLine(second);
            }
        }
        else
        {
            if (second > third)
            {
                if (first > third)
                {
                    Console.WriteLine(second);
                    Console.WriteLine(first);
                    Console.WriteLine(third);
                }
                else
                {
                    Console.WriteLine(second);
                    Console.WriteLine(third);
                    Console.WriteLine(first);
                }
            }
            else
            {
                Console.WriteLine(third);
                Console.WriteLine(second);
                Console.WriteLine(first);
            }
        }
    }
}